<?php
include dirname(dirname(__FILE__)).'/admin-verify.php';
require dirname(__FILE__).'/functions.php';
$_className=addslashes($_POST["class-name"]);
$_preClassName=addslashes($_POST["pre-class-name"]);
$_id=getGoodsClassId($_preClassName);
$params=array(
		'name'=>'"'.$_className.'"',			
);
if (updateGoodsClass($params, $_id)) {
	
	alertInfo("修改成功", getHost().'/admin/goods-manage/index.php');
		
}else {
	alertInfo("修改失败",  getHost().'/admin/goods-manage/index.php');	
}
?>

